package com.example.demo.xcel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

/**
 * @author FENGYU
 * @description
 * @date 2023/8/31 15:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
// 行高
@HeadRowHeight(25)
// 行宽
@ColumnWidth(30)
@ContentFontStyle()
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER)
public class TUser0 {
//    // 每列名称
//    public TUser0(String xprojectCode, String userCode, String periodNum, String releaseAmount) {
//        this.xprojectCode = xprojectCode;
//        this.userCode = userCode;
//        this.releaseAmount = releaseAmount;
//        this.periodNum = periodNum;
//
//    }
//    public TUser0(  String userCode ) {
//        this.userCode = userCode;
//    }
//
//    public TUser0(String xprojectCode, String userCode, String paidAmount, String periodNum, String plusPercent, String releasePercent) {
//        this.xprojectCode = xprojectCode;
//        this.userCode = userCode;
//        this.paidAmount = paidAmount;
//        this.periodNum = periodNum;
//        this.plusPercent = plusPercent;
//        this.releasePercent = releasePercent;
//    }

    @ExcelProperty(index = 1, value = "学员编号")
    private String code;

    @ExcelProperty(index = 2, value = "学员姓名")
    private String name;

    @ExcelProperty(index = 8, value = "发放比例")
    private String releasePercent;

   @ExcelProperty(index = 16, value = "提成比例")
    private String plusPercent;

    @ExcelProperty(index = 5, value = "订单编号")
    private String xprojectCode;
    @ExcelProperty(index = 9, value = "提成基数")
    private String plusValue;
    @ExcelProperty(index = 10, value = "员工编号")
    private String userCode;
    @ExcelProperty(index = 17, value = "发放期数")
    private String periodNum;
    @ExcelProperty(index = 18, value = "发放金额")
    private String releaseAmount;




    //
//
//    @ExcelProperty(index = 0, value = "所属部门")
//    private String ownDeptName;
//
//    @ExcelProperty(index = 1, value = "提成员工实际部门")
//    private String readDeptName;
//
//    @ExcelProperty(index = 2, value = "提成审核人")
//    private String eaUserName;
//
//    @ExcelProperty(index = 3, value = "学员编号")
//    private String code;
//
//    @ExcelProperty(index = 4, value = "学员姓名")
//    private String name;
//
//    @ExcelProperty(index = 5, value = "班级编号")
//    private String cno;
//
//    @ExcelProperty(index = 6, value = "班级状态")
//    private String classStatus;
//
//    @ExcelProperty(index = 7, value = "上课状态")
//    private String registrationStatus;
//
//    @ExcelProperty(index = 8, value = "订单创建时间")
//    private String createDate;
//
////    @ExcelProperty(index = 9, value = "订单编号")
////    private String xprojectCode;
//
//    @ExcelProperty(index = 10, value = "订单状态")
//    private String payStatus;
//
//    @ExcelProperty(index = 11, value = "确认方式")
//    private String releaseType;
//
//    @ExcelProperty(index = 12, value = "产品名")
//    private String pname;
//
//    @ExcelProperty(index = 13, value = "应缴金额")
//    private String actualAmount;
//
//    @ExcelProperty(index = 14, value = "发放比例")
//    private String releasePercent;
//
////    @ExcelProperty(index = 15, value = "提成基数")
////    private String plusValue;
//
////    @ExcelProperty(index = 16, value = "员工编号")
////    private String userCode;
//
//    @ExcelProperty(index = 17, value = "员工姓名")
//    private String userName;
//
//    @ExcelProperty(index = 18, value = "员工真实姓名")
//    private String realName;
//
//    @ExcelProperty(index = 19, value = "员工职务")
//    private String assignPosition;
//
//    @ExcelProperty(index = 20, value = "在职状态")
//    private String validStatus;
//
//    @ExcelProperty(index = 21, value = "离职日期")
//    private String resignDate;
//
//    @ExcelProperty(index = 22, value = "提成比例")
//    private String plusPercent;
//
////    @ExcelProperty(index = 23, value = "发放期数")
////    private String periodNum;
//
////    @ExcelProperty(index = 24, value = "发放金额")
////    private String releaseAmount;
//
//    @ExcelProperty(index = 25, value = "优惠金额")
//    private String discountSum;
//
//    @ExcelProperty(index = 26, value = "已缴金额")
//    private String paidAmount;
//
//    @ExcelProperty(index = 27, value = "可锁定日期")
//    private String triggerDate;
//
//    @ExcelProperty(index = 28, value = "锁定日期")
//    private String lockDate;
//
//    @ExcelProperty(index = 29, value = "提成归属月")
//    private String releaseDate;
//
//    @ExcelProperty(index = 30, value = "解锁日期")
//    private String unlockDate;
//
//    @Override
//    public boolean equals(Object o) {
//        if (this == o) return true;
//        if (o == null || getClass() != o.getClass()) return false;
//        TUser0 tUser = (TUser0) o;
//        return Objects.equals(ownDeptName, tUser.ownDeptName) && Objects.equals(readDeptName, tUser.readDeptName) && Objects.equals(eaUserName, tUser.eaUserName) && Objects.equals(code, tUser.code) && Objects.equals(name, tUser.name) && Objects.equals(cno, tUser.cno) && Objects.equals(classStatus, tUser.classStatus) && Objects.equals(registrationStatus, tUser.registrationStatus) && Objects.equals(createDate, tUser.createDate) && Objects.equals(xprojectCode, tUser.xprojectCode) && Objects.equals(payStatus, tUser.payStatus) && Objects.equals(releaseType, tUser.releaseType) && Objects.equals(pname, tUser.pname) && Objects.equals(actualAmount, tUser.actualAmount) && Objects.equals(releasePercent, tUser.releasePercent) && Objects.equals(plusValue, tUser.plusValue) && Objects.equals(userCode, tUser.userCode) && Objects.equals(userName, tUser.userName) && Objects.equals(realName, tUser.realName) && Objects.equals(assignPosition, tUser.assignPosition) && Objects.equals(validStatus, tUser.validStatus) && Objects.equals(resignDate, tUser.resignDate) && Objects.equals(plusPercent, tUser.plusPercent) && Objects.equals(periodNum, tUser.periodNum) && Objects.equals(releaseAmount, tUser.releaseAmount) && Objects.equals(discountSum, tUser.discountSum) && Objects.equals(paidAmount, tUser.paidAmount) && Objects.equals(triggerDate, tUser.triggerDate) && Objects.equals(lockDate, tUser.lockDate) && Objects.equals(releaseDate, tUser.releaseDate) && Objects.equals(unlockDate, tUser.unlockDate);
//    }
//
//    @Override
//    public int hashCode() {
//        return Objects.hash(ownDeptName, readDeptName, eaUserName, code, name, cno, classStatus, registrationStatus, createDate, xprojectCode, payStatus, releaseType, pname, actualAmount, releasePercent, plusValue, userCode, userName, realName, assignPosition, validStatus, resignDate, plusPercent, periodNum, releaseAmount, discountSum, paidAmount, triggerDate, lockDate, releaseDate, unlockDate);
//    }
//
//    @Override
//    public String toString() {
//        return "TUser{" +
//                "ownDeptName='" + ownDeptName + '\'' +
//                ", readDeptName='" + readDeptName + '\'' +
//                ", eaUserName='" + eaUserName + '\'' +
//                ", code='" + code + '\'' +
//                ", name='" + name + '\'' +
//                ", cno='" + cno + '\'' +
//                ", classStatus='" + classStatus + '\'' +
//                ", registrationStatus='" + registrationStatus + '\'' +
//                ", createDate='" + createDate + '\'' +
//                ", xprojectCode='" + xprojectCode + '\'' +
//                ", payStatus='" + payStatus + '\'' +
//                ", releaseType='" + releaseType + '\'' +
//                ", pname='" + pname + '\'' +
//                ", actualAmount='" + actualAmount + '\'' +
//                ", releasePercent='" + releasePercent + '\'' +
//                ", plusValue='" + plusValue + '\'' +
//                ", userCode='" + userCode + '\'' +
//                ", userName='" + userName + '\'' +
//                ", realName='" + realName + '\'' +
//                ", assignPosition='" + assignPosition + '\'' +
//                ", validStatus='" + validStatus + '\'' +
//                ", resignDate='" + resignDate + '\'' +
//                ", plusPercent='" + plusPercent + '\'' +
//                ", periodNum='" + periodNum + '\'' +
//                ", releaseAmount='" + releaseAmount + '\'' +
//                ", discountSum='" + discountSum + '\'' +
//                ", paidAmount='" + paidAmount + '\'' +
//                ", triggerDate='" + triggerDate + '\'' +
//                ", lockDate='" + lockDate + '\'' +
//                ", releaseDate='" + releaseDate + '\'' +
//                ", unlockDate='" + unlockDate + '\'' +
//                '}';
//    }
}
